package com.jdyfy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.IdType.ASSIGN_ID;
import static com.baomidou.mybatisplus.annotation.IdType.AUTO;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("meets") //数据库中对应的表名
public class Meet implements Serializable {

    //确保反序列化时能正确恢复对象的状态
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type =  AUTO)
    private Long meetId; //会议编号

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime meetTime; // 会议时间

    private String meetLoca; // 会议地点

    private String meetMemo; // 会议备注

    private String projectName; // 项目名称

    private String contactPerson; // 联系人

    private String contactPhone; // 联系电话

    private Integer status;
}
